<?php
namespace Mob \ Controller;

use Think \ Controller;
use Think \ Hook;

class TestController extends BaseController {


  public function index()
  {

 $wxcommon = D('WxCommon');

$openid = 'oEc6EuDJFR4KMqfRVW6fIsy_VUt0';
$tempid='csTim9pxiMSZm-3gl8kwyUK4zxHGyDpy8Gz1qw4gMY8';

$data = array( 'first'=>array('value'=>urlencode("有youhuer评论"),'color'=>"#743A3A"),
                'keyword1'=>array('value'=>urlencode("2016-07-27 21:51"),'color'=>'#EEEEEE'),
                'keyword2'=>array('value'=>urlencode("评论成功"),'color'=>'#EEEEEE'),
                'remark'=>array('value'=>urlencode('感谢使用!'),'color'=>'#FFFFFF'),
            );


$res = $wxcommon->doSend($openid,$tempid,$data);




  }
  public function demo ()
  {
  $wxCommon = D('WxCommon');
  $sign=$wxCommon->get_js_sdk();
  $this->assign('signPackage',$sign);
  $this->display();


  }

  public function test ()
  {





  }








}



